package com.feeyo.groundservice.composewidget.usage

import android.os.Bundle
import androidx.activity.compose.setContent
import androidx.compose.foundation.layout.Column
import androidx.compose.ui.Alignment
import com.feeyo.groundservice.composewidget.R
import com.feeyo.groundservice.composewidget.usage.base.BaseComposeActivity
import com.feeyo.groundservice.composewidget.util.toComposeColor
import com.feeyo.groundservice.composewidget.view.progress.CustomLinearProgressIndicator
import com.feeyo.groundservice.composewidget.view.progress.CustomVerticalProgressIndicator

/**
 *作者：QLH on 2024-10-21
 *描述：进度条
 */
class ProcessActivity:BaseComposeActivity() {


    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)

        setContent {
            Column(
                horizontalAlignment = Alignment.CenterHorizontally
            ) {
                CustomLinearProgressIndicator(
                    0.8f,
                    trackIconRes = R.drawable.icon_progress_plane,
                    trackIconResColor = R.color.red_EB5451.toComposeColor(),
                )

                CustomVerticalProgressIndicator(
                    0.8f,
                    trackIconRes = R.drawable.icon_progress_plane,
                    trackIconResColor = R.color.red_EB5451.toComposeColor(),
                )
            }
        }
    }
}